<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<p:dataTable id="hiddenTableHotesses" var="hotesse"
		value="#{listeHotesseControler.hotesses}" rendered="false">

		<!-- Personne -->

		<p:column>
			<f:facet name="header">
				<h:outputText value="perNom" />
			</f:facet>
			<h:outputText value="#{hotesse.nom}" />
		</p:column>

		<p:column>
			<f:facet name="header">
				<h:outputText value="perPrenom" />
			</f:facet>
			<h:outputText value="#{hotesse.prenom}" />
		</p:column>

		<!-- Adresse -->
		
		<p:column>
			<f:facet name="header">
				<h:outputText value="per_ADR_rue" />
			</f:facet>
			<h:outputText value="#{hotesse.adresse.nomDeRue}" />
		</p:column>

		<p:column>
			<f:facet name="header">
				<h:outputText value="per_ADR_cp" />
			</f:facet>
			<h:outputText value="#{hotesse.adresse.codePostal}" />
		</p:column>

		<p:column>
			<f:facet name="header">
				<h:outputText value="per_ADR_ville" />
			</f:facet>
			<h:outputText value="#{hotesse.adresse.ville}" />
		</p:column>

		<p:column>
			<f:facet name="header">
				<h:outputText value="per_ADR_telDom" />
			</f:facet>
			<h:outputText value="#{hotesse.adresse.telDomicile}" />
		</p:column>

		<p:column>
			<f:facet name="header">
				<h:outputText value="per_ADR_telPort" />
			</f:facet>
			<h:outputText value="#{hotesse.adresse.telPortable}" />
		</p:column>

		<p:column>
			<f:facet name="header">
				<h:outputText value="per_ADR_email" />
			</f:facet>
			<h:outputText value="#{hotesse.adresse.email}" />
		</p:column>

		<p:column>
			<f:facet name="header">
				<h:outputText value="perDateNaissance" />
			</f:facet>
			<h:outputText value="#{hotesse.dateDeNaissance}">
				<f:convertDateTime  timeZone="GMT+3" pattern="dd/MM/yyyy" />
			</h:outputText>
		</p:column>
		
		<!--  Infos hotesse -->

		<p:column>
			<f:facet name="header">
				<h:outputText value="perTailleHaut" />
			</f:facet>
			<h:outputText value="#{hotesse.tailleHaut}" />
		</p:column>

		<p:column>
			<f:facet name="header">
				<h:outputText value="perTailleBas" />
			</f:facet>
			<h:outputText value="#{hotesse.tailleBas}" />
		</p:column>

		<p:column>
			<f:facet name="header">
				<h:outputText value="perDerniereVisite" />
			</f:facet>
			<h:outputText value="#{hotesse.derniereVisite}">
				<f:convertDateTime timeZone="GMT+3" pattern="dd/MM/yyyy" />
			</h:outputText>
		</p:column>
		
		<p:column>
			<f:facet name="header">
				<h:outputText value="perCommentaire" />
			</f:facet>
			<h:outputText value="#{hotesse.commentaires}" />
		</p:column>
		
		
		<p:column>
			<f:facet name="header">
				<h:outputText value="perPreference" />
			</f:facet>
			<h:outputText value="#{hotesse.preferences}" />
		</p:column>
		
		<p:column>
			<f:facet name="header">
				<h:outputText value="perAchat" />
			</f:facet>
			<h:outputText value="#{hotesse.achats}" />
		</p:column>
		
		<p:column>
			<f:facet name="header">
				<h:outputText value="perProduits" />
			</f:facet>
			<h:outputText value="#{hotesse.produitsAsString}" />
		</p:column>

	</p:dataTable>
</ui:composition>